<%-- 
    Document   : notyourturn
    Created on : May 22, 2012, 3:24:20 PM
    Author     : Dell
--%>

<%@page import="src.DataAccess"%>
<%@ page import="java.io.*" %>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>

<html>  
    <head>  
        <script language="javascript">  
            function popup(){  
            <% String user = "";
                try {
                    int player = -1;
                    player = DataAccess.getActivePlayer();
                    user = "" + player;
                } catch (Exception e) {
                    e.printStackTrace();
                }

            %>  
                    var s=" Not your turn. Current Active Player: <%=user%>";  
                    alert(s);  
                }  
        </script>  
    </head>  
    <body onload="popup()">  
    </body>  
</html>  



<%    /*
     * try { int player = -1; player = DataAccess.getActivePlayer();
     *
     * response.reset(); response.setHeader("Content-Disposition", "inline");
     * response.setHeader("Cache-Control", "no-cache");
     * response.setHeader("Expires", "0");
     * response.setContentType("text/plain"); out.println(" Not your Turn.
     * Current Active Player: " + player);
     *
     * } catch (Exception e) { e.printStackTrace(); }
     *
     */
%>



